import { post } from "@/utils/request";
import { UserInfo } from "@/types/user";

/**
 * 用户登陆
 */
export const loginApi = (data: any) => post<UserInfo>("/api/v1/user/people-login", data);

/**
 * 获取短信验证码
 */
export const loginSms = (data: any) => post<any>("/api/v1/user/sms", data);

export const postUserIdCardLogin = (id_card: string, name: string) => post<any>(`/api/v1/user/idcard-login`, { id_card, name });
